package com.relytosoft.mizar.media.analyze.api.config;

import com.relytosoft.mizar.media.common.config.properties.MizarAnalyzeProperties;
import com.relytosoft.mizar.media.common.constant.MediaCommonConstants;
import feign.RequestInterceptor;
import feign.RequestTemplate;

import javax.annotation.Resource;

/**
 * AnalyzeFeignInterceptor
 *
 * @Author SunLi
 * @Date: 2022/5/19 11:57
 * @Version 1.0
 */
public class AnalyzeFeignInterceptor implements RequestInterceptor {

    @Resource
    private MizarAnalyzeProperties analyzeProperties;

    @Override
    public void apply(RequestTemplate requestTemplate) {
        requestTemplate.header("content-type", MediaCommonConstants.JSON_HEADER);
    }
}
